<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>权限包-目的地运营集团数据管理平台</title>
<include file="Include:style" />
</head>
<body>
<include file="Include:header" />
<include file="Include:left" />
<div id="main">
	<div class="crumbs">
		<div class="crumbs-text">权限包</div>
		<div class="right">
		    <a href="__APP__/System/permissions_group_add" class="btn ml5 left">添加权限包</a>
		</div>
	</div>
	<div id="content">
		<div class="filter">
			<div class="filter-item">
				<div class="filter-title">分类：</div>
				<ul class="filter-order">
					<foreach name="type_list" item="vo">
					<li <if condition="$type eq $vo['name1']">class="current"</if>>
						<a href="__APP__/System/permissions_group/type/{$vo['name1']}">{$vo['name2']}</a>
					</li>
					</foreach>
				</ul>
			</div>
		</div>
		<div class="table-scrollx">
			<table class="table table-bordered table-hover">
				<tr class="table-header fixed-table-header">
					<td>权限包名称({$sum})</td>
					<td>备注</td>
					<td width="100">管理</td>
				</tr>
				<foreach name="result" item="vo">
					<tr>
						<td>{$vo['permissions_name']}</td>
						<td>{$vo['remark']}</td>
						<td class="nowrap">
							<a href="__APP__/System/permissions_group_edit/type/{$type}/id/{$vo['id']}" class="icon-edit" data-toggle="tooltip" data-placement="left" title="编辑"><i class="glyphicon glyphicon-edit"></i></a>
							<if condition="$vo['is_del'] eq 1"><a href="javascript:;" zid="{$vo['id']}" class="delete ml5" data-toggle="tooltip" data-placement="left" title="删除"><i class="glyphicon glyphicon-trash"></i></a></if>
						</td>
					</tr>
				</foreach>
			</table>
		</div>
	</div>
</div>
<include file="Include:javascript" />
<script type="text/javascript">
$(function(){
	//删除权限包
	$(".delete").ajaxModal({"title_text":"确认提示框","body_text":"您确定要删除吗？","url":"__APP__/System/permissions_group_delete","data":{"id":"zid"}});
});
</script>
</body>
</html>